package com.egghiro.framework.j2se.game.model.shape;

public class Point2D {
    public float x;
    public float y;
    public int type;

    public static final int POINT_CONVEX = 1;
    public static final int POINT_CONCAVE = 2;

    public Point2D(float x, float y) {

        this.x = x;
        this.y = y;
    }

    public boolean equals(Object obj) {

        Point2D p = (Point2D) obj;
        if (p.x == this.x && p.y == this.y && p.type == this.type) {

            return true;
        } else {
            return false;
        }

    }

    public String toString() {

        return "(" + this.x + ", " + this.y + ")";
    }

}
